const user = {
    id:1,
    name:"xiaowang",
    classes:{
        id:1
    }
}

type sem = typeof user  

const stu:sem = {
    id:1,name:"xiaofei",classes:{
        id:1
    }
}

function toArray(num:number){

}
type fun = typeof toArray  // fun = (num:number)=>void

export {}